using System.Diagnostics.CodeAnalysis;
using System.ServiceProcess;
using Framework.Core.Process;

namespace Framework.Core.BootStrapper.WindowsService
{
    internal class ServiceBaseAdapter : IServiceBaseAdapter
    {
        [ExcludeFromCodeCoverage]
        public void Run<TArgs>(IWindowsService<TArgs> serviceBase, TArgs commandLines) where TArgs : IWindowsServiceArgs
        {
            ServiceBase.Run(new WindowsServiceAdapter<TArgs>(serviceBase, commandLines));
        }
    }
}